package ru.papergames.battleserver.model.battle.npc;

import ru.papergames.battleserver.model.battle.AbstractBattle;
import ru.papergames.battleserver.model.battle.BattlePlayer;

/**
 * Date: 11.05.12 21:22
 *
 * @author Alexander Troshanin
 */
public class NpcHolder {

    private BattlePlayer npcPlayer;

    private AbstractBattle battle;

    private boolean holderBussy;

    public BattlePlayer getNpcPlayer() {
        return npcPlayer;
    }

    public void setNpcPlayer(BattlePlayer npcPlayer) {
        this.npcPlayer = npcPlayer;
    }

    public AbstractBattle getBattle() {
        return battle;
    }

    public void setBattle(AbstractBattle battle) {
        this.battle = battle;
    }

    public boolean isHolderBussy() {
        return holderBussy;
    }

    public void setHolderBussy(boolean holderBussy) {
        this.holderBussy = holderBussy;
    }

    public void clearHolder() {
        setBattle(null);
        setNpcPlayer(null);
    }
}
